import request from '@/utils/request'

// 查询用户挑战进度表列表
export function listProcess(query) {
  return request({
    url: '/north/process/list',
    method: 'get',
    params: query
  })
}

// 查询用户挑战进度表详细
export function getProcess(userId) {
  return request({
    url: '/north/process/' + userId,
    method: 'get'
  })
}

// 新增用户挑战进度表
export function addProcess(data) {
  return request({
    url: '/north/process',
    method: 'post',
    data: data
  })
}

// 修改用户挑战进度表
export function updateProcess(data) {
  return request({
    url: '/north/process',
    method: 'put',
    data: data
  })
}

// 删除用户挑战进度表
export function delProcess(userId) {
  return request({
    url: '/north/process/' + userId,
    method: 'delete'
  })
}
